<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page import="com.are.odisea.*"%>
<%@include file="validausuario.jsp"%>
<%
String rolp="VENC";
if(!RolesPag.tienePermiso(rolp,(String)session.getAttribute("id_usuario"))){
	response.sendRedirect("index.jsp");	
}
String filtro="all";
if(request.getParameter("criterio")!=null){
	filtro=(String) request.getParameter("criterio");
}
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Odisea - Bandeja de Noticias</title>
	<link rel="stylesheet" href="themes/redmond/jquery.ui.all.css">
	<LINK REL="stylesheet" TYPE="text/css" HREF="main.css">
	<script src="ui/jquery-1.8.0.js" language="JavaScript"></script>
	<script src="ui/jquery.ui.core.js" language="JavaScript"></script>
	<script src="ui/jquery.ui.widget.js" language="JavaScript"></script>
	<script src="ui/jquery.ui.tabs.js" language="JavaScript"></script>
	<script src="ui/jquery.ui.button.js"></script>
	<script src="ui/jquery.effects.core.js"></script>
	<script src="ui/jquery.effects.slide.js"></script>
	<script src="ui/jquery.ui.datepicker.js"></script>
	<script src="ui/jquery.effects.explode.js"></script>
	<script src="ui/jquery.effects.fold.js"></script>
	<script src="ui/jquery.effects.slide.js"></script>
	<script src="ui/jquery.ui.draggable.js"></script>
	<script src="ui/jquery.ui.position.js"></script>
	<script src="ui/jquery.ui.resizable.js"></script>
	<script src="ui/jquery.ui.dialog.js"></script>
	<script src="ui/jquery.effects.core.js"></script>
	<script src="ui/jquery.ui.widget.js"></script>
	<script src="ui/jquery.ui.mouse.js"></script>
	<script src="ui/jquery.bgiframe-2.1.2.js"></script>
	<script type="text/javascript">
	function listTer(filtro) {
		$("#Noticias").load("SrvEncuestas?operacion=listTerI&filtro="+ filtro);
	}
	</script>
</head>
<body onload="listTer('<%=filtro%>')">
<%@include file="header.jsp"%>
<div class="contencenter demo">
<H2><img src="images/Encuestas.png" style="width:64px; heigth:64px;" />Encuestas</H2>
	<div style="width:60%;">
		<form action="" name="form1">
			Busqueda: <input type="text" size=40 name="criterio" id="criterio"/> 
			<input type="submit" value="Buscar" name="cmd_buscar" id="cmd_buscar">
		</form>
	</div>
	<div id="Noticias">
	
	</div>
</div>
<%@include file="foot.jsp"%>
</body>
</html>